diff options
| -rw-r--r-- | modules/calendar-sync.el | 5 | ||||
| -rw-r--r-- | tests/test-calendar-sync.el | 8 |
2 files changed, 1 insertions, 12 deletions
diff --git a/modules/calendar-sync.el b/modules/calendar-sync.el index fc9736b5..d9889b08 100644 --- a/modules/calendar-sync.el +++ b/modules/calendar-sync.el @@ -159,11 +159,6 @@ Returns negative for west of UTC, positive for east. Example: -21600 for CST (UTC-6), -28800 for PST (UTC-8)." (car (current-time-zone))) -(defun calendar-sync--timezone-name () - "Get human-readable timezone name. -Returns string like 'CST' or 'PST'." - (cadr (current-time-zone))) - (defun calendar-sync--format-timezone-offset (offset) "Format timezone OFFSET (in seconds) as human-readable string. Example: -21600 → 'UTC-6' or 'UTC-6:00'." diff --git a/tests/test-calendar-sync.el b/tests/test-calendar-sync.el index 144d6486..b912c132 100644 --- a/tests/test-calendar-sync.el +++ b/tests/test-calendar-sync.el @@ -508,13 +508,7 @@ Valid events should be parsed, invalid ones skipped." (should (>= offset (* -12 3600))) (should (<= offset (* 14 3600))))) -(ert-deftest test-calendar-sync--timezone-name-returns-string () - "Test that timezone name returns a string." - (let ((name (calendar-sync--timezone-name))) - ;; Should be a string - (should (stringp name)) - ;; Should not be empty - (should (> (length name) 0)))) + (ert-deftest test-calendar-sync--format-timezone-offset-handles-negative () "Test formatting negative timezone offsets (west of UTC)." |
